/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.VendorDao;
import cc.altius.model.Vendor;
import cc.altius.model.VendorDetail;
import cc.altius.model.VendorSubtype;
import cc.altius.service.VendorService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author jitendra
 */
@Service
public class VendorServiceImpl implements VendorService{

    @Autowired
    VendorDao vendorDao;

    @Override
    public List<VendorDetail> getVendorDetailList() {
        return this.vendorDao.getVendorDetailList();
    }

    @Override
    public List<VendorSubtype> getVendorSubtypeList() {
        return this.vendorDao.getVendorSubtypeList();
    }

    @Override
    public int addVendorDetail(VendorDetail vendorDetail) {
        return this.vendorDao.addVendorDetail(vendorDetail);
    }

    @Override
    public int addVendor(Vendor vendor) {
        return this.vendorDao.addVendor(vendor);
    }

    @Override
    public List<Vendor> getVendorList(int centerId, int vendorSubtypeId) {
        return this.vendorDao.getVendorList(centerId, vendorSubtypeId);
    }

    @Override
    public Vendor getVendorById(int vendorId) {
        return this.vendorDao.getVendorById(vendorId);
    }

    @Override
    public int updateVendor(Vendor vendor) {
        return this.vendorDao.updateVendor(vendor);
    }
    
    @Override
    public VendorDetail getVendorDetailById(int vendorDetailId) {
        return this.vendorDao.getVendorDetailById(vendorDetailId);
    }

    @Override
    public int updateVendorDetail(VendorDetail vendorDetail) {
        return this.vendorDao.updateVendorDetail(vendorDetail);
    }
    
     @Override
    public List<VendorSubtype> getVendorSubListFromType(String vendortype){
        return this.vendorDao.getVendorSubListFromType(vendortype);
    }
    
    
    
}
